/* === Mobile/Responsive Enhancements (appended 2025-10-19) === */

/* Container padding tweaks for small screens */
@media (max-width: 900px){
  .container{ padding-left:16px; padding-right:16px; }
}

/* Header: allow wrapping and nicer spacing */
@media (max-width: 900px){
  .site-header .bar{ flex-wrap: wrap; gap: 10px; align-items: flex-start; }
  .brand img{ height: 40px; }
  .brand span{ font-size: 16px; line-height: 1.2; }
  nav{ width: 100%; margin-left: 0; flex-wrap: wrap; gap: 8px; }
  nav a{ padding: 10px 12px; border-radius: 8px; display: inline-block; }
}

/* Typography scaling */
@media (max-width: 900px){
  h1{ font-size: clamp(28px, 5vw, 36px); }
  h2{ font-size: clamp(22px, 4.2vw, 28px); }
  h3{ font-size: clamp(18px, 3.8vw, 22px); }
  p, li{ font-size: 16px; line-height: 1.6; }
}

/* Generic grid responsiveness */
@media (max-width: 1000px){
  .grid{ grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
}
@media (max-width: 640px){
  .grid{ grid-template-columns: 1fr !important; }
}

/* Cards spacing on small screens */
@media (max-width: 640px){
  .card{ padding: 16px; border-radius: 12px; }
}

/* Hero/CTA stacks */
@media (max-width: 900px){
  .hero{ grid-template-columns: 1fr !important; gap: 16px; }
  .hero .cta{ display: grid; grid-template-columns: 1fr; gap: 10px; }
}

/* Images and galleries */
@media (max-width: 900px){
  img{ height: auto; max-width: 100%; }
  .gallery{ grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap: 10px; }
}
@media (max-width: 560px){
  .gallery{ grid-template-columns: 1fr !important; }
}

/* Tables: make scrollable horizontally */
.table-responsive{ width:100%; overflow-x:auto; }
.table-responsive table{ min-width: 600px; }

/* Forms: full width inputs/buttons on mobile */
@media (max-width: 640px){
  input[type="text"], input[type="email"], select, textarea, button{
    width: 100%;
  }
}

/* Footer adjustments */
@media (max-width: 900px){
  footer .container{ text-align: center; }
}


/* === Cookie Banner === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.85);
  color: #fff;
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  flex-wrap: wrap;
  z-index: 99999;
  font-size: 14px;
}

.cookie-text a {
  color: #FFD500;
  text-decoration: underline;
}

.cookie-button {
  background: linear-gradient(90deg, var(--brand1), var(--brand3), var(--brand4));
  border: none;
  color: white;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 8px;
}

@media (max-width: 640px){
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .cookie-button {
    width: 100%;
  }
}